package com.ttj.domain.oracle.gen;

import java.io.Serializable;
import java.util.Date;

public class SuperBDepartment implements Serializable {
    private Integer id;

    private String dName;

    private Date indate;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getdName() {
        return dName;
    }

    public void setdName(String dName) {
        this.dName = dName;
    }

    public Date getIndate() {
        return indate;
    }

    public void setIndate(Date indate) {
        this.indate = indate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", dName=").append(dName);
        sb.append(", indate=").append(indate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperBDepartment other = (SuperBDepartment) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getdName() == null ? other.getdName() == null : this.getdName().equals(other.getdName()))
            && (this.getIndate() == null ? other.getIndate() == null : this.getIndate().equals(other.getIndate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getdName() == null) ? 0 : getdName().hashCode());
        result = prime * result + ((getIndate() == null) ? 0 : getIndate().hashCode());
        return result;
    }
}